UCF STIG Viewer Logo

The httpd.conf LimitRequestFields directive is set to unlimited.


Overview

Finding ID Version Rule ID IA Controls Severity
V-13737 WA000-WWA062 SV-14347r1_rule Medium
Description
Buffer overflow attacks are carried out by a malicious attacker sending amounts of data that the web server cannot store in a given size buffer. The eventual overflow of this buffer can overwrite system memory. Subsequently an attacker may be able to elevate privileges and take control of the server. The Apache directives listed below limit the size of the various HTTP header sizes thereby limiting the chances for a buffer overflow. From Apache.org: Number is an integer from 0 (meaning unlimited) to 32767. The default value is defined by the compile-time constant DEFAULT_LIMIT_REQUEST_FIELDS (100 as distributed). The LimitRequestFields directive allows the server administrator to modify the limit on the number of request header fields allowed in an HTTP request. A server needs this value to be larger than the number of fields that a normal client request might include. The number of request header fields used by a client rarely exceeds 20, but this may vary among different client implementations, often depending upon the extent to which a user has configured their browser to support detailed content negotiation. Optional HTTP extensions are often expressed using request header fields. This directive gives the server administrator greater control over abnormal client request behavior, which may be useful for avoiding some forms of denial-of-service attacks. The value should be increased if normal clients see an error response from the server that indicates too many fields were sent in the request.
STIG Date
IIS 7.0 Server STIG 2019-03-22

Details

Check Text ( C-10990r1_chk )
To view the LimitRequestFields value enter the following command: grep "LimitRequestFields" /usr/local/apache2/conf/httpd.conf

If the value of LimitRequestFields is not set to 1 or greater or does not exist, then this is a finding.

Note: It is recommended that the directive be explicitly set to prevent unexpected results should the defaults change with updated software.
Fix Text (F-13185r1_fix)
Edit the httpd.conf file and set LimitRequestFields Directive to a value greater than 0.